package com.pswv2.backstage.more.authentication.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pswv2.backstage.category.servic.CategoryService;
import com.pswv2.backstage.keyword.service.KWordService;
import com.pswv2.backstage.more.authentication.servic.AuthenticationService;
import com.pswv2.backstage.risk.servic.RiskService;
import com.pswv2.bub.bsc.dao.po.Authentication;
import com.pswv2.bub.bsc.dao.po.Category;
import com.pswv2.bub.bsc.dao.po.KWord;
import com.pswv2.bub.bsc.dao.po.Risk;
import com.pswv2.util.ExtraSpringHibernateTemplate;

@Service
public class AuthenticationImp implements AuthenticationService {
	private static Class<?> poc = Authentication.class;
	@Autowired
	private ExtraSpringHibernateTemplate extraSpringHibernateTemplate;
	@Override
	public Authentication queryById(int id) {
		// TODO Auto-generated method stub
		return extraSpringHibernateTemplate.findFirstOneByPropEq(poc, "authenticationId", id);
	}
	
}
